import { ajax } from "@/utils/request";
import '@/mock/register/step'

// 验证手机号
export function docheckphone(data:{tel:string}) {
    return ajax({
        url: "/docheckphone",
        method:'post',
        data
    });
}

// 发送短信验证码
export function dosendmsgcode(data:{tel:string}) {
    return ajax({
        url: "/dosendmsgcode",
        method:'post',
        data
    });
}

// 注册
export function dofinishregister(data:{tel:string,password:string}) {
    return ajax({
        url: "/dofinishregister",
        method:'post',
        data
    });
}